%%%-------------------------------------------------------------------
%%% @author 92913
%%% @copyright (C) 2024, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 21. 7月 2024 11:19
%%%-------------------------------------------------------------------
-module(exception).
-author("92913").

%% API
-compile(export_all).

start() ->
  try
    1 / 0
  catch
    error:badarith ->
      io:format("badarith~n");
    error:Err ->
      io:format("error:~p~n", [Err]);
    exit:Exit ->
      io:format("exit:~p~n", [Exit]);
    _:Other ->
      io:format("other:~p~n", [Other])
  after
    io:format("after~n")
  end.

